﻿<igRibbon:XamRibbonWindow 
    xmlns:igRibbon="http://infragistics.com/Ribbon"
    x:Class="TVersiPlay.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
    xmlns:prism="http://www.codeplex.com/CompositeWPF"
    xmlns:common="clr-namespace:TVersiPlay.Common;assembly=TVersiPlay.Common"
    xmlns:ext="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extended"
    xmlns:local="clr-namespace:TVersiPlay.LoadingAnimation"
    Height="700" Width="900"    
    WindowStartupLocation="CenterScreen"
    WindowState="Maximized"
    MinHeight="300"
    MinWidth="400"
    Title="TVersiPlay 1.0">   
    <igRibbon:XamRibbonWindow.Resources>
        <BooleanToVisibilityConverter x:Key="BoolToVisConverter" />
    </igRibbon:XamRibbonWindow.Resources>
    <igRibbon:RibbonWindowContentHost>
        <igRibbon:RibbonWindowContentHost.Ribbon>
            <igRibbon:XamRibbon x:Name="shellRibbon" Height="57" DockPanel.Dock="Top" Theme="Onyx" IsMinimized="False">
                <igRibbon:XamRibbon.ApplicationMenu>
                    <igRibbon:ApplicationMenu  >
                        <!--Image=".\Images\icons\Ribbon\RibbonDefaultApplicationIcon.png"-->
                        <igRibbon:ButtonTool Content="_Main Menu" x:Name="HomeButton" Command="{Binding Path=NavigateHome}" />
                        <igRibbon:ButtonTool Content="_Add Region" x:Name="TestNav" Command="{Binding Path=TestNavigate}" />
                        <!--<igRibbon:ButtonTool Content="_LookUp" x:Name="LookUpButton" />-->

                        <!--<igRibbon:MenuTool Caption="A_dministration" x:Name="AdministrationMenuTool">
                            <igRibbon:ButtonTool Content="UDAs" Click="UDA_Click" Visibility="{Binding Path=IsUDAsVisible, Converter={StaticResource localBoolToVisibility}}"/>
                            <igRibbon:ButtonTool Content="User" Click="User_Click"/>
                            <igRibbon:ButtonTool Content="User Time Off" Click="UserTimeOff_Click" Visibility="{Binding Path=IsUserTimeOffVisible, Converter={StaticResource localBoolToVisibility}}"/>
                            <igRibbon:ButtonTool Content="User Schedule" Click="UserSchedule_Click" Visibility="{Binding Path=IsUserScheduleVisible, Converter={StaticResource localBoolToVisibility}}"/>
                            <igRibbon:ButtonTool Content="User Workflow" Click="UserWorkflow_Click" Visibility="{Binding Path=IsUserWorkflowVisible, Converter={StaticResource localBoolToVisibility}}"/>
                            <igRibbon:ButtonTool Content="Workflow" Click="Workflow_Click" Visibility="{Binding Path=IsWorkflowVisible, Converter={StaticResource localBoolToVisibility}}"/>
                            <igRibbon:ButtonTool Content="Comm Template" Click="CommTemplate_Click" Visibility="{Binding Path=IsCommTemplateVisible, Converter={StaticResource localBoolToVisibility}}"/>
                            <igRibbon:ButtonTool Content="Other Activity" Click="OtherActivity_Click" Visibility="{Binding Path=IsOtherActivityVisible, Converter={StaticResource localBoolToVisibility}}"/>
                        </igRibbon:MenuTool>-->
                    </igRibbon:ApplicationMenu>
                </igRibbon:XamRibbon.ApplicationMenu>       
            </igRibbon:XamRibbon>
        </igRibbon:RibbonWindowContentHost.Ribbon>
        <ext:BusyIndicator IsBusy="{Binding Path=IsBusy}" BusyContent="{Binding Path=StatusText}" >
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <ContentControl Grid.Row="0" prism:RegionManager.RegionName="{x:Static common:RegionNames.MainRegion}" />
            </Grid>
        </ext:BusyIndicator>        
        <igRibbon:RibbonWindowContentHost.StatusBar>
            <StatusBar Height="25" Name="ShellStatusBar" VerticalAlignment="Bottom">               
                <StatusBarItem Name="Loading">
                    <Viewbox>
                        <local:LoadingAnimation Visibility="{Binding Path=IsBusy,Converter={StaticResource BoolToVisConverter}}" />
                    </Viewbox>                    
                </StatusBarItem>
                <StatusBarItem Name="StatusBarText">
                    <TextBlock Name="StatusTextBlock" Text="{Binding Path=StatusText}"/>
                </StatusBarItem>
                <StatusBarItem Name="StatusBarWhoWhere" HorizontalAlignment="Right">
                    <TextBlock Name="WhoWhereTextBlock" />
                </StatusBarItem>
            </StatusBar>
        </igRibbon:RibbonWindowContentHost.StatusBar>
    </igRibbon:RibbonWindowContentHost>    
</igRibbon:XamRibbonWindow>

